import request from '@/config/axios'

// 获得产品教学列表
export const getTeachList = (params: any) => {
  return request.get({ url: '/afterSales/teach/getList', params })
}
// 创建产品教学信息
export const createTeach = (data: any) => {
  return request.post({ url: '/afterSales/teach/add', data })
}
// 获取产品教学信息
export const getTeach = (id: any) => {
  return request.get({ url: `/afterSales/teach/getOne/${id}` })
}
// 修改产品教学信息
export const updateTeach = (data: any) => {
  return request.put({ url: '/afterSales/teach/update', data })
}
// 删除产品教学信息
export const deleteTeach = (id: any) => {
  return request.delete({ url: `/afterSales/teach/delete?id=${id}` })
}



// 获得产品教学类型列表
export const getTeachTypeList = (params: any) => {
  return request.get({ url: '/afterSales/teachType/list', params })
}
// 创建产品教学类型信息
export const createTeachType = (data: any) => {
  return request.post({ url: '/afterSales/teachType/add', data })
}
// 获取产品教学类型信息
export const getTeachType = (id: any) => {
  return request.get({ url: `/afterSales/teach/getOne?id=${id}` })
}
// 修改产品教学类型信息
export const updateTeachType = (data: any) => {
  return request.put({ url: '/afterSales/teachType/update', data })
}
// 删除产品教学类型信息
export const deleteTeachType = (ids: any) => {
  return request.delete({ url: `/afterSales/teachType/delete?id=` + ids })
}
